Mysqli->real_escape_string?

I assume you've got something like self::$link = new mysqli(...) If it can't connect, it doesn't return false but an object, so in any case, your conditional always evaluates to true : if (self::$link) { echo "I'm always here! " } Try mysqli_connect_error() or self::$link->connect_error() (depending on your php version) as stated in mysqli::__construct.

I assume you've got something like self::$link = new mysqli(...); If it can't connect, it doesn't return false, but an object, so in any case, your conditional always evaluates to true: if (self::$link) { echo "I'm always here! " } Try mysqli_connect_error() or self::$link->connect_error() (depending on your php version) as stated in mysqli::__construct.

You were right.. the connection was somehow closed – clarkk May 2 at 9:26.

Note that this function will NOT escape _ (underscore) and % (percent) signs, which have special meanings in LIKE clauses. As far as I know there is no function to do this, so you have to escape them yourself by adding a backslash in front of them.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions